import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// @ts-ignore
import ElementPlus from 'element-plus';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/index.css'
import 'element-plus/dist/index.css';

const resizeObserverErrHandler = (err:any) => {
    if (err.message.includes('ResizeObserver')) return;
    console.error(err);
  };
  window.addEventListener('error', resizeObserverErrHandler);
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus).use(store).use(router).mount('#app')

